﻿using System.Windows;
using AuchanScan.ViewModels;
using Microsoft.Phone.Controls;

namespace AuchanScan.Views
{
    public partial class SyncPage : PhoneApplicationPage
    {
        public SyncPage()
        {
            InitializeComponent();
            DataContext = ViewModelLocator.SyncViewModelStatic;
            Loaded += SyncPage_Loaded;
        }

        private void SyncPage_Loaded(object sender, RoutedEventArgs e)
        {
            StoryboardLogo.Begin();((SyncViewModel) DataContext).Sync();
        }

      
    }
}